﻿using System;
using System.Text;
using System.Drawing;
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;

public static partial class glDRIVE
{
    /*
    第一类整数阶Bessel函数
    n：n阶数。要求n>0。
    x：自变量值。
    返回第一类整数阶Bessel函数值。
    */

    public static string drive_bessel_1()
    {
        int n, i;
        double x, y;
        StringBuilder sb = new StringBuilder();
        for (n = 0; n <= 5; n++)
        {
            x = 0.05;
            for (i = 1; i <= 4; i++)
            {
                y = gl.bessel_1(n, x);
                sb.AppendLine("n=" + n + "   x=" + x + "    J(n, x)=" + y + "<br>");
                x = x * 10.0;
            }
        }
        return sb.ToString();
    }
}